<?php 

session_start(); 

require("conexao/ConectaMysql.class.php");
require("conexao/ControleAcesso.class.php");

ControleAcesso::verificaSessao();//verificar se foi feito o login correto e se não expirou a sessão 

$SETsigla 		= $_SESSION['SETsigla'];
$FUNnome 		= $_SESSION['FUNnome'];
$FUNsobrenome 	= $_SESSION['FUNsobrenome'];
$PRIVdescricao	= $_SESSION['PRIVdescricao'];


?>

<!DOCTYPE html PUBLIC >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>.:: PhpSupport ::.</title>

<link rel="shortcut icon" href="estrutura/imagens/ico.gif" />
<link href="estrutura/css/estruturaTela.css" rel="stylesheet" type="text/css" media="screen" />
<link href="estrutura/css/estruturaAba.css" rel="stylesheet" type="text/css" media="screen" />
<link href="estrutura/css/estruturaMenu.css" rel="stylesheet" type="text/css" media="screen" />

<script type="text/javascript" src="estrutura/js/menu/jqueryMenu.js"></script>
<script type="text/javascript" src="estrutura/js/menu/ddaccordion.js"></script>
<script type="text/javascript" src="estrutura/js/menu/menu.js"></script>
<script language="javascript">

	function abrirMenu(obj){
		document.getElementById('transparencia').style.visibility = (document.getElementById(obj).style.visibility == 'hidden' ? '' : 'hidden');
		document.getElementById(obj).style.visibility = (document.getElementById(obj).style.visibility == 'hidden' ? '' : 'hidden');		
	}
	
	function fecharMenu(obj){
		document.getElementById(obj).style.visibility = 'hidden';
		document.getElementById('transparencia').style.visibility = 'hidden';
	}

</script>
	
</head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
<div id="apDiv_All">
	<div id="apDiv1">
	
        <div style="width:178px; font-family: verdana; font-size: 12px; position: absolute; z-index: 100; top: 4px; left: 798px; color:#81B4B8">
            <p><strong>Usuario:</strong> <?php echo $FUNnome." ".$FUNsobrenome;?></p>
            <p><strong>Setor:</strong> <?php echo $SETsigla;?></p>
            <p><strong>Privilégio: </strong><?php echo $PRIVdescricao;?></p>
        </div> 
        
        
        <div class="ubercolortabsmenu">
<ul>
				<li>
                    <div onClick="abrirMenu('apDiv_Menu');" style="z-index:80; position:absolute; top:147px; left:-4px;">
                        <a style="margin-left: 50px"><span>Menu</span></a>
                    </div>
                </li>
            </ul>
        </div>

        
        <div id="transparencia" style="z-index:10; visibility:hidden; width:935px; height:620px; position:absolute; top:146px; left:35px; background-color:white; opacity:0.8; filter:alpha(opacity=80);" > </div>
    
    
      <label><div style="z-index:0; align="center\""><img src="estrutura/imagens/telaPrincipal.jpg" height="805" ></div></label>
    
      <div style="visibility:;" id="apDiv_Menu">
            <div class="glossymenu">
                <a onClick="fecharMenu('apDiv_Menu');" class="menuitem" href="sistema.php">Home</a>
                
                <a class="menuitem submenuheader" href="#" >Cadastro</a>
                <div class="submenu">
                    <ul>
                        <li><a onClick="fecharMenu('apDiv_Menu');" href="cadastro/setor/index_setor.php" target="home">Setor</a></li>
                        <li><a onClick="fecharMenu('apDiv_Menu');" href="cadastro/funcionario/index_funcionario.php" target="home">Funcionário</a></li>                  
                    </ul>
                </div>
            
            
                <a class="menuitem submenuheader" href="#">Helpdesk</a>
                <div class="submenu">
                    <ul>
                        <li><a onClick="fecharMenu('apDiv_Menu');" href="helpdesk/cadastro/index_helpdesk.php" target="home">Chamados</a></li>
                    </ul>
                </div>
                
                <a class="menuitem submenuheader" href="#">Relatório</a>
                <div class="submenu">
                    <ul>
                        <li><a onClick="fecharMenu('apDiv_Menu');" href="relatorio/index_relatorio.php" target="home">Gr&aacute;ficos</a></li>
                    </ul>
                </div>
                
                <a class="menuitem" href="destroy_session.php">Sair</a>
            
            </div>
        </div>
        
        <div id="apDiv_Home">
<div class="conteudo">
                <iframe src="home.php" name="home" width="934" height="570" scrolling="no" frameborder="0" id="home" allowtransparency="true"></iframe>
          </div>
      </div>
        
	</div>
</div>
</body>
</html>
